<?php
namespace app\api\model;

use app\model\Base;

class ModeProduct extends Base
{
    public function getCoverAttr($value, $data)
    {
        return $this::getOssUrl() . $data['img'];
    }

    public function getAliasAttr($value, $data)
    {
        return 'mode.detail';
    }

    public function getParamsAttr($value, $data)
    {
        return ['id'=>$data['id']];
    }

    public function getCoverFormatAttr($value, $data)
    {
        return $this::getOssUrl() . $data['img'];
    }
}